package app_core

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type HbjgCampusLocationRouter struct {}

// InitHbjgCampusLocationRouter 初始化 建筑表 路由信息
func (s *HbjgCampusLocationRouter) InitHbjgCampusLocationRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	hbjgCampusLocationRouter := Router.Group("hbjgCampusLocation").Use(middleware.OperationRecord())
	hbjgCampusLocationRouterWithoutRecord := Router.Group("hbjgCampusLocation")
	hbjgCampusLocationRouterWithoutAuth := PublicRouter.Group("hbjgCampusLocation")
	{
		hbjgCampusLocationRouter.POST("createHbjgCampusLocation", hbjgCampusLocationApi.CreateHbjgCampusLocation)   // 新建建筑表
		hbjgCampusLocationRouter.DELETE("deleteHbjgCampusLocation", hbjgCampusLocationApi.DeleteHbjgCampusLocation) // 删除建筑表
		hbjgCampusLocationRouter.DELETE("deleteHbjgCampusLocationByIds", hbjgCampusLocationApi.DeleteHbjgCampusLocationByIds) // 批量删除建筑表
		hbjgCampusLocationRouter.PUT("updateHbjgCampusLocation", hbjgCampusLocationApi.UpdateHbjgCampusLocation)    // 更新建筑表
	}
	{
		hbjgCampusLocationRouterWithoutRecord.GET("findHbjgCampusLocation", hbjgCampusLocationApi.FindHbjgCampusLocation)        // 根据ID获取建筑表
		hbjgCampusLocationRouterWithoutRecord.GET("getHbjgCampusLocationList", hbjgCampusLocationApi.GetHbjgCampusLocationList)  // 获取建筑表列表
	}
	{
	    hbjgCampusLocationRouterWithoutAuth.GET("getHbjgCampusLocationPublic", hbjgCampusLocationApi.GetHbjgCampusLocationPublic)  // 建筑表开放接口
	}
}
